<?php

namespace Sharks\Core\Make;

use Sharks\Core\AppContext;
use Sharks\Core\Cfg\AppConfig;

/**
 * 应用设置初始化
 * 依赖：
 *     无
 */
class SystemSettingMaker extends Maker {

    public function dev(AppContext $app) {
        $this->make($app);
    }

    public function server(AppContext $app) {
        $this->make($app);
    }

	public function make(AppContext $app) {
        // 时区设置
		date_default_timezone_set(AppConfig::get('timezone', 'Asia/Shanghai'));
	}
}